From: Jonas Dreßler Date: Mon, 21 Feb 2022 12:39:17 +0000 (+0100) Subject: status/network: Show disabled icon when bluetooth cellular is disabled X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~516^2^2~49 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=3d3ed850fee3d9660642d84c1342beb6183ffb42;p=gnome-shell.git status/network: Show disabled icon when bluetooth cellular is disabled https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2186 Part-of: --- diff --git a/js/ui/status/network.js b/js/ui/status/network.js index 9f74877ba..a90b29778 100644 --- a/js/ui/status/network.js +++ b/js/ui/status/network.js @@ -669,6 +669,13 @@ var NMDeviceBluetooth = class extends NMConnectionDevice { return _("Connect to Internet"); } + _getMenuIcon() { + if (!this._device.active_connection) + return 'network-cellular-disabled-symbolic'; + + return this.getIndicatorIcon(); + } + getIndicatorIcon() { if (this._device.active_connection) { let state = this._device.active_connection.state;